<template>
  <div class="panel">
    <div class="panel-title">
      <h1>{{paneltitle}}</h1>
    </div>
    <div class="panel-divide"></div>
    <div class="panel-content">
      <slot></slot>
    </div>
  </div>
</template>
<script>
  export default{
    data () {
      return {};
    },
    props: {
      paneltitle: {
        type: String,
        default: '抬头标签'
      }
    }
  };
</script>
<style scoped>
  .panel{
    box-sizing: border-box;
    padding: 10px;
  }
  .panel>.panel-title{
    padding-bottom: 10px;
  }
  .panel>.panel-title>h1{
    font-size: 20px;
    font-weight: bold;
  }
  .panel-content{
    padding-top: 10px;
  }
  .panel-divide{
    border-bottom: 1px dashed lightblue;
  }
</style>
